function TauntAction takes nothing returns nothing
	local unit target = GetSpellTargetUnit()
	local unit caster = GetTriggerUnit()
	//--
	call IssueImmediateOrderById(target , 851972) //停止
	call IssueTargetOrder(target , "attack" , caster)
	call UnitPlayAnimation(caster , 63 , 2.5 , 0.4)
	call UnitUsedAbilityWithDelta(caster , 'A022' , 1.0)
	//--
	set target = null
	set caster = null
endfunction

function Trig_TauntTryActions takes nothing returns nothing
	if GetSpellAbilityId() == 'A022' then
		call TauntAction()
	endif
endfunction

function InitTrig_Taunt takes nothing returns nothing
	local hashtable masteryTable = InitHashtable()
	local integer abilityId = 'A022'
	//--	
	call SaveInteger(udg_AbilityDataHashTable , abilityId , StringHash("NEXT_ABILITY") , 'A01N')
	call SaveInteger(udg_AbilityDataHashTable , abilityId , StringHash("HOTKEY") , StringHash("E"))
	call SaveInteger(udg_AbilityDataHashTable , abilityId , StringHash("MASTERY_ID") , StringHash("TAUNT_MASTERY"))
	call SaveStr(udg_AbilityDataHashTable , abilityId , StringHash("NAME") , "挑釁")
	call SaveInteger(udg_AbilityDataHashTable , abilityId , StringHash("MAX_LEVEL") , 3)
	call SaveHashtableHandle(udg_AbilityDataHashTable , abilityId , StringHash("LEVEL_MASTERY_TABLE") , masteryTable)
	call SaveReal(masteryTable , 1 , 0 , 3.0)
	call SaveReal(masteryTable , 2 , 0 , 9.0)
	call SaveReal(masteryTable , 3 , 0 , 18.0)
	
	set gg_trg_Taunt = CreateTrigger()
	call TriggerRegisterPlayerForceUnitEvent(gg_trg_Taunt , EVENT_PLAYER_UNIT_SPELL_EFFECT )
	call TriggerAddAction(gg_trg_Taunt , function Trig_TauntTryActions)
	//--
	set masteryTable = null
endfunction